package com.smsclient.model.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.util.Date;


@Getter
@Setter
@MappedSuperclass
public abstract class BaseEntity extends AbstractIdEntity {

    /**
     * 操作标志(A-增加，U-更新，D-删除)
     */
    @Column
    private Integer operationFlag;

    /**
     * 创建人ID
     */
    @Column(name ="create_user" )
    private String createUser;



    /**
     * 创建时间
     */
    @Column(name ="create_date" )
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /**
     * 修改人ID
     */
    @Column(name ="update_user"  )
    private String updateUser;


    /**
     * 修改时间
     */
    @Column(name ="update_date"  )
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private Date updateDate;


}
